package com.asj.house.controller;


import com.asj.house.returns.RespEntity;
import com.asj.house.service.HouseVisitService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 访问量表 前端控制器
 * </p>
 *
 * @author asj
 * @since 2021-03-05
 */
@RestController
@RequestMapping("/house-visit")
@Api(value = "访问量统计", tags = "访问量统计")
@Slf4j
public class HouseVisitController {

    @Resource
    private HouseVisitService houseVisitService;

    @PostMapping("/access")
    @ApiOperation(value = "访问量数据接入")
    public void visitAccess() {
        houseVisitService.visitAccess();
    }

}
